package com.itrencai.d4_date.regex;

public class Regexsplit {
    //分割和替换
    public static void main(String[] args) {
        String  names="荣额o52rwer9025放我去590uwwnerw哦";
       String[] arr= names.split("\\w+");
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
        //把所有的英文字母和数字替换成“  ”
       String names2= names.replaceAll("\\w+","  ");
        System.out.println(names2);
    }
}
